package com.meng.netty.encoder;

import com.meng.model.PointOfSale;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageEncoder;

import java.util.List;


/**
 * POS encoder netty 自定义编码器
 *
 * @author MENG
 * @version 2018/3/21
 * @see
 */
public class PointOfSaleEncoder extends MessageToMessageEncoder<PointOfSale>
{
    @Override
    protected void encode(ChannelHandlerContext channelHandlerContext, PointOfSale pointOfSale, List<Object> list) throws Exception
    {
//        ByteBuf byteBuf = pointOfSale.encoder();

//        list.add(byteBuf);
    }
}
